import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui'
import MyHttpServer from './plugins/http.js'
import moment from 'moment'
import MyBread from './components/cuscom/myBread.vue'
import TreeTable from 'vue-table-with-tree-grid'
// 导入富文本编辑器
import VueQuillEditor from 'vue-quill-editor'
// 导入富文本编辑器样式
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import './assets/fonts/iconfont.css'
// 引入css文件
import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/reset.css'
Vue.use(ElementUI)
Vue.use(MyHttpServer)
Vue.use(VueQuillEditor)
// 全局过滤器，处理时间
Vue.filter('fmtdate',v=>{
    return moment(v).format('YYYY-MM-DD')
})
// 全局自定义组件
Vue.component('my-bread',MyBread)
Vue.component('tree-table',TreeTable)
new Vue({
    router,
    render: ce => ce(App)
}).$mount('#app')